<?php


use Illuminate\Support\Facades\Route;

//qq登录回调
Route::get('callback',[\App\Http\Controllers\LoginController::class,'callback']);
//根据地区切换轮播图
Route::get('swiper',[\App\Http\Controllers\LoginController::class,'show']);
//问题反馈
Route::post('feedback',[\App\Http\Controllers\LoginController::class,'problemFeedback'])->middleware('User');
//获取当前省份的市区
Route::get('city',[\App\Http\Controllers\AddressController::class,'city']);
//创建团购
Route::post('group',[\App\Http\Controllers\HousePurchase::class,'Group'])->middleware('User');
//展示所有房源信息
Route::get('house',[\App\Http\Controllers\HousePurchase::class,'House']);
//团购列表展示
Route::post('groupList',[\App\Http\Controllers\HousePurchase::class,'groupList'])->middleware('User');
//切换团购状态
Route::post('stateSwitch',[\App\Http\Controllers\HousePurchase::class,'stateSwitch']);
//团购详情
Route::post('groupDetails',[\App\Http\Controllers\HousePurchase::class,'groupDetails']);
//删除团购活动
Route::post('groupDelete',[\App\Http\Controllers\HousePurchase::class,'groupDelete']);
//开团
Route::post('startGroup',[\App\Http\Controllers\HousePurchase::class,'startGroup']);
//客户端团购列表展示
Route::post('clinetList',[\App\Http\Controllers\HousePurchase::class,'clinetList'])->middleware('User');
//加入团购
Route::post('clientJoin',[\App\Http\Controllers\HousePurchase::class,'clientJoin'])->middleware('User');

Route::post('joinState',[\App\Http\Controllers\HousePurchase::class,'joinState'])->middleware('User');
